<template>
  <!-- 医生排班页面 -->
  <div class="page-container">
    <el-card class="main-card">
      <template #header>
        <span class="main-title">医生排班</span>
      </template>
      <!-- 当天在号医生表格 -->
      <el-table :data="doctors" style="width: 100%; margin-top: 16px;" stripe highlight-current-row>
        <el-table-column type="index" label="序号" width="80" align="center" />
        <el-table-column prop="name" label="姓名" width="100" />
        <el-table-column prop="department" label="科室" width="120" />
        <el-table-column prop="title" label="职称" width="100" />
        <el-table-column prop="schedule" label="排班时间" width="160" />
        <el-table-column prop="status" label="状态" width="100">
          <template #default="scope">
            <el-tag :type="scope.row.status === '在号' ? 'success' : 'info'" class="status-tag">{{ scope.row.status }}</el-tag>
          </template>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script setup>
import { ref } from 'vue'
// 当天在号医生数据（前端模拟）
const doctors = ref([
  { name: '王医生', department: '内科', title: '主任医师', schedule: '2024-06-02 上午', status: '在号' },
  { name: '李医生', department: '外科', title: '副主任医师', schedule: '2024-06-02 上午', status: '在号' },
  { name: '赵医生', department: '儿科', title: '主治医师', schedule: '2024-06-02 下午', status: '休息' }
])
</script>

<style scoped>
.page-container {
  padding: 32px;
  background: linear-gradient(135deg, #e3f0ff 0%, #f5f7fa 100%);
  min-height: 100vh;
}
.main-card {
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(80,120,200,0.10), 0 1.5px 8px 0 rgba(80,120,200,0.08);
  transition: box-shadow 0.3s;
}
.main-card:hover {
  box-shadow: 0 12px 40px 0 rgba(80,120,200,0.16), 0 2px 12px 0 rgba(80,120,200,0.10);
}
.main-title {
  font-size: 22px;
  font-weight: 600;
  color: #1976d2;
  letter-spacing: 1px;
}
.el-table {
  border-radius: 10px;
  overflow: hidden;
}
.el-table__row:hover {
  background: #e3f2fd !important;
}
.status-tag {
  font-size: 15px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}
</style> 